#coding: utf-8
from django.db import models
class ServerMenu(models.Model):
    pid = models.IntegerField()
    text = models.CharField(max_length=200)
    remark = models.CharField(max_length=200,blank=True)
    url = models.CharField(max_length=200,blank=True)
    state = models.CharField(max_length=200,blank=True)
    iconCls =  models.CharField(max_length=200,blank=True)
# Create your models here.
class ServerInfo(models.Model):
    servermenu_id = models.ForeignKey(ServerMenu,help_text='菜单')
    host_name = models.CharField(max_length=200, blank=True)
    ip = models.CharField(max_length=200)
    port = models.IntegerField()
    system = models.CharField(max_length=200)
    user = models.CharField(max_length=200, blank=True)
    password = models.CharField(max_length=200, blank=True)
    remark = models.CharField(max_length=200, blank=True)